package me.ivps.android.testdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class LaunchActivity extends Activity {
    
    public static final String STRING_PAYLOAD = "Started from LaunchActivity";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_launch);
        
        findViewById(R.id.btn_launch_next_activity).setOnClickListener(
                new View.OnClickListener() {
                    
                    @Override
                    public void onClick(View v) {
                        startActivity(NextActivity.newIntent(
                                LaunchActivity.this, STRING_PAYLOAD));
                        finish();
                    }
                });
    }
    
}
